#ifndef PARSEFILES_H
#define PARSEFILES_H

#include <QString>
#include "globalelem.h"
#include "elka.h"
#include <QFile>

class ParseFiles
{
private:
    QString _type;
    void CloseFiles(QFile& f1, QFile& f2);

    //==================================================================
    int ParsingTxt(QFile& fileSt1, QFile& fileSt2);
    int ParseLine(QString line, Elka& classEl);
    int ViborElki(QList<Elka> *&spisok1St, QList<Elka> *&spisok2St, QTime& time, int interv);
    int ParseFileZapSpiska(QList<Elka>*& spisok1St, QFile& fileSt1);
    //==================================================================
    int ParsingHtml(QFile& fileSt1, QFile& fileSt2);

public:
    ParseFiles(QString& type);
    ParseFiles(const ParseFiles&){}

    int RunParse();
};

#endif // PARSEFILES_H
